export const CollAspedReducer= (prevState={
    isCollapsed:false,
    isDisplay:'block'
},action)=>{
    // console.log(action);
    let {type} = action
    switch(type){
        case "change_collapsed":
            let newstate={...prevState};
            newstate.isDisplay=newstate.isDisplay==='block' ? 'none' : 'block' 
            newstate.isCollapsed=!newstate.isCollapsed
            return newstate
        default: return prevState
    }
   
}

